<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: SkyEngine2d::FastBuffer&lt; T &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">1.0.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>SkyEngine2d</b></li><li class="navelem"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">FastBuffer</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="class_sky_engine2d_1_1_fast_buffer-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">SkyEngine2d::FastBuffer&lt; T &gt; 模板类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>快速缓存区  
 <a href="class_sky_engine2d_1_1_fast_buffer.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_fast_buffer_8h_source.html">FastBuffer.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:acc51cfa2326470ef8a0bcf1b83a33a61"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html#acc51cfa2326470ef8a0bcf1b83a33a61">FastBuffer</a> (int defalut_capacity=128)</td></tr>
<tr class="memdesc:acc51cfa2326470ef8a0bcf1b83a33a61"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造一个缓存区  <a href="#acc51cfa2326470ef8a0bcf1b83a33a61">更多...</a><br /></td></tr>
<tr class="separator:acc51cfa2326470ef8a0bcf1b83a33a61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa30728074b1ef2518a55d934aea9fc8"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html#afa30728074b1ef2518a55d934aea9fc8">FastBuffer</a> (const <a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">FastBuffer</a>&lt; T &gt; &amp;buffer)</td></tr>
<tr class="memdesc:afa30728074b1ef2518a55d934aea9fc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">拷贝构造  <a href="#afa30728074b1ef2518a55d934aea9fc8">更多...</a><br /></td></tr>
<tr class="separator:afa30728074b1ef2518a55d934aea9fc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e7683b9aa6be313cdc14bcfb4b8b78d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html#a9e7683b9aa6be313cdc14bcfb4b8b78d">FastBuffer</a> (<a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">FastBuffer</a>&lt; T &gt; &amp;&amp;buffer)</td></tr>
<tr class="memdesc:a9e7683b9aa6be313cdc14bcfb4b8b78d"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动构造  <a href="#a9e7683b9aa6be313cdc14bcfb4b8b78d">更多...</a><br /></td></tr>
<tr class="separator:a9e7683b9aa6be313cdc14bcfb4b8b78d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae27008e1a3e1b9c1caa67ece122e5e1f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">FastBuffer</a>&lt; T &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html#ae27008e1a3e1b9c1caa67ece122e5e1f">operator=</a> (const <a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">FastBuffer</a>&lt; T &gt; &amp;buffer)</td></tr>
<tr class="memdesc:ae27008e1a3e1b9c1caa67ece122e5e1f"><td class="mdescLeft">&#160;</td><td class="mdescRight">拷贝赋值  <a href="#ae27008e1a3e1b9c1caa67ece122e5e1f">更多...</a><br /></td></tr>
<tr class="separator:ae27008e1a3e1b9c1caa67ece122e5e1f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a204c893a96f99ea1fb35c1719e68f542"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">FastBuffer</a>&lt; T &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html#a204c893a96f99ea1fb35c1719e68f542">operator=</a> (<a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">FastBuffer</a>&lt; T &gt; &amp;&amp;buffer)</td></tr>
<tr class="memdesc:a204c893a96f99ea1fb35c1719e68f542"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动赋值  <a href="#a204c893a96f99ea1fb35c1719e68f542">更多...</a><br /></td></tr>
<tr class="separator:a204c893a96f99ea1fb35c1719e68f542"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a8a88dbfd19d119cc3c4c23357edc8b"><td class="memItemLeft" align="right" valign="top"><a id="a4a8a88dbfd19d119cc3c4c23357edc8b"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html#a4a8a88dbfd19d119cc3c4c23357edc8b">~FastBuffer</a> ()</td></tr>
<tr class="memdesc:a4a8a88dbfd19d119cc3c4c23357edc8b"><td class="mdescLeft">&#160;</td><td class="mdescRight">析构 <br /></td></tr>
<tr class="separator:a4a8a88dbfd19d119cc3c4c23357edc8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a6b01d255f54ba905aff4e0c1ade810"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html#a3a6b01d255f54ba905aff4e0c1ade810">append</a> (const T *data, int size)</td></tr>
<tr class="memdesc:a3a6b01d255f54ba905aff4e0c1ade810"><td class="mdescLeft">&#160;</td><td class="mdescRight">追加数据  <a href="#a3a6b01d255f54ba905aff4e0c1ade810">更多...</a><br /></td></tr>
<tr class="separator:a3a6b01d255f54ba905aff4e0c1ade810"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3409aa0f3f6a6265c76b3ba926fdcddc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html#a3409aa0f3f6a6265c76b3ba926fdcddc">append</a> (T &amp;&amp;value)</td></tr>
<tr class="memdesc:a3409aa0f3f6a6265c76b3ba926fdcddc"><td class="mdescLeft">&#160;</td><td class="mdescRight">追加一个数据  <a href="#a3409aa0f3f6a6265c76b3ba926fdcddc">更多...</a><br /></td></tr>
<tr class="separator:a3409aa0f3f6a6265c76b3ba926fdcddc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46bb8474716bb9ce9cbf91ee5c616022"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html#a46bb8474716bb9ce9cbf91ee5c616022">append</a> (const T &amp;value)</td></tr>
<tr class="memdesc:a46bb8474716bb9ce9cbf91ee5c616022"><td class="mdescLeft">&#160;</td><td class="mdescRight">追加一个数据  <a href="#a46bb8474716bb9ce9cbf91ee5c616022">更多...</a><br /></td></tr>
<tr class="separator:a46bb8474716bb9ce9cbf91ee5c616022"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30a4357209d6b6a6b2c1f14d69ce2c99"><td class="memItemLeft" align="right" valign="top">const T *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html#a30a4357209d6b6a6b2c1f14d69ce2c99">getData</a> () const</td></tr>
<tr class="memdesc:a30a4357209d6b6a6b2c1f14d69ce2c99"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取数据的指针  <a href="#a30a4357209d6b6a6b2c1f14d69ce2c99">更多...</a><br /></td></tr>
<tr class="separator:a30a4357209d6b6a6b2c1f14d69ce2c99"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5ce91afaf795c23f9d6e8b69b574263"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html#ae5ce91afaf795c23f9d6e8b69b574263">getSize</a> () const</td></tr>
<tr class="memdesc:ae5ce91afaf795c23f9d6e8b69b574263"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取数据的数量  <a href="#ae5ce91afaf795c23f9d6e8b69b574263">更多...</a><br /></td></tr>
<tr class="separator:ae5ce91afaf795c23f9d6e8b69b574263"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab79255cdf919b8c824bc148f1ce97173"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html#ab79255cdf919b8c824bc148f1ce97173">getCapacitry</a> () const</td></tr>
<tr class="memdesc:ab79255cdf919b8c824bc148f1ce97173"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取容量  <a href="#ab79255cdf919b8c824bc148f1ce97173">更多...</a><br /></td></tr>
<tr class="separator:ab79255cdf919b8c824bc148f1ce97173"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb504bf7f642daa4022da71c14052fbb"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html#abb504bf7f642daa4022da71c14052fbb">reserve</a> (int size)</td></tr>
<tr class="memdesc:abb504bf7f642daa4022da71c14052fbb"><td class="mdescLeft">&#160;</td><td class="mdescRight">预分配容量  <a href="#abb504bf7f642daa4022da71c14052fbb">更多...</a><br /></td></tr>
<tr class="separator:abb504bf7f642daa4022da71c14052fbb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6dd4ca47ee2d4ac59dc4ef0e7ff6bd00"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html#a6dd4ca47ee2d4ac59dc4ef0e7ff6bd00">getMemSize</a> ()</td></tr>
<tr class="memdesc:a6dd4ca47ee2d4ac59dc4ef0e7ff6bd00"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取数据所占内存的大小 单位 字节  <a href="#a6dd4ca47ee2d4ac59dc4ef0e7ff6bd00">更多...</a><br /></td></tr>
<tr class="separator:a6dd4ca47ee2d4ac59dc4ef0e7ff6bd00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae93d4ba7c2f0a857e2bbc45e41a8fd75"><td class="memItemLeft" align="right" valign="top">const T &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html#ae93d4ba7c2f0a857e2bbc45e41a8fd75">operator[]</a> (int index) const</td></tr>
<tr class="memdesc:ae93d4ba7c2f0a857e2bbc45e41a8fd75"><td class="mdescLeft">&#160;</td><td class="mdescRight">取值  <a href="#ae93d4ba7c2f0a857e2bbc45e41a8fd75">更多...</a><br /></td></tr>
<tr class="separator:ae93d4ba7c2f0a857e2bbc45e41a8fd75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0c74d5cabc35fba9b1d3091de9d3732"><td class="memItemLeft" align="right" valign="top">T &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html#ab0c74d5cabc35fba9b1d3091de9d3732">operator[]</a> (int index)</td></tr>
<tr class="memdesc:ab0c74d5cabc35fba9b1d3091de9d3732"><td class="mdescLeft">&#160;</td><td class="mdescRight">取值  <a href="#ab0c74d5cabc35fba9b1d3091de9d3732">更多...</a><br /></td></tr>
<tr class="separator:ab0c74d5cabc35fba9b1d3091de9d3732"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd0439c5932a5d2dcb51b30de1507727"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html#acd0439c5932a5d2dcb51b30de1507727">clear</a> ()</td></tr>
<tr class="memdesc:acd0439c5932a5d2dcb51b30de1507727"><td class="mdescLeft">&#160;</td><td class="mdescRight">清空缓存  <a href="#acd0439c5932a5d2dcb51b30de1507727">更多...</a><br /></td></tr>
<tr class="separator:acd0439c5932a5d2dcb51b30de1507727"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab844a48bba1b468e72e0f7c57ca85cf3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html#ab844a48bba1b468e72e0f7c57ca85cf3">freeMem</a> ()</td></tr>
<tr class="memdesc:ab844a48bba1b468e72e0f7c57ca85cf3"><td class="mdescLeft">&#160;</td><td class="mdescRight">释放内存  <a href="#ab844a48bba1b468e72e0f7c57ca85cf3">更多...</a><br /></td></tr>
<tr class="separator:ab844a48bba1b468e72e0f7c57ca85cf3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;typename T&gt;<br />
class SkyEngine2d::FastBuffer&lt; T &gt;</h3>

<p>快速缓存区 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="acc51cfa2326470ef8a0bcf1b83a33a61"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc51cfa2326470ef8a0bcf1b83a33a61">&#9670;&nbsp;</a></span>FastBuffer() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">SkyEngine2d::FastBuffer</a>&lt; T &gt;::<a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">FastBuffer</a> </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>defalut_capacity</em> = <code>128</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>构造一个缓存区 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">int</td><td>defalut_capacity 默认分配的容量 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="afa30728074b1ef2518a55d934aea9fc8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa30728074b1ef2518a55d934aea9fc8">&#9670;&nbsp;</a></span>FastBuffer() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">SkyEngine2d::FastBuffer</a>&lt; T &gt;::<a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">FastBuffer</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">FastBuffer</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>buffer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>拷贝构造 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>FastBuffer&lt;T&gt; &amp; buffer </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9e7683b9aa6be313cdc14bcfb4b8b78d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e7683b9aa6be313cdc14bcfb4b8b78d">&#9670;&nbsp;</a></span>FastBuffer() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">SkyEngine2d::FastBuffer</a>&lt; T &gt;::<a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">FastBuffer</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">FastBuffer</a>&lt; T &gt; &amp;&amp;&#160;</td>
          <td class="paramname"><em>buffer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>移动构造 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">FastBuffer&lt;T&gt;</td><td>&amp; &amp; buffer </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a3a6b01d255f54ba905aff4e0c1ade810"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a6b01d255f54ba905aff4e0c1ade810">&#9670;&nbsp;</a></span>append() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">SkyEngine2d::FastBuffer</a>&lt; T &gt;::append </td>
          <td>(</td>
          <td class="paramtype">const T *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>追加数据 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>T* data 追加的数据块 </td></tr>
    <tr><td class="paramname">int</td><td>size 数据块中数据的数量 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a3409aa0f3f6a6265c76b3ba926fdcddc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3409aa0f3f6a6265c76b3ba926fdcddc">&#9670;&nbsp;</a></span>append() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">SkyEngine2d::FastBuffer</a>&lt; T &gt;::append </td>
          <td>(</td>
          <td class="paramtype">T &amp;&amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>追加一个数据 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">T</td><td>&amp; &amp; value 数据 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="a46bb8474716bb9ce9cbf91ee5c616022"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46bb8474716bb9ce9cbf91ee5c616022">&#9670;&nbsp;</a></span>append() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">SkyEngine2d::FastBuffer</a>&lt; T &gt;::append </td>
          <td>(</td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>追加一个数据 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>T &amp; value 数据 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="acd0439c5932a5d2dcb51b30de1507727"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acd0439c5932a5d2dcb51b30de1507727">&#9670;&nbsp;</a></span>clear()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">SkyEngine2d::FastBuffer</a>&lt; T &gt;::clear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>清空缓存 </p>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>
<dl class="section note"><dt>注解</dt><dd>clear 并不会释放内存 </dd></dl>

</div>
</div>
<a id="ab844a48bba1b468e72e0f7c57ca85cf3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab844a48bba1b468e72e0f7c57ca85cf3">&#9670;&nbsp;</a></span>freeMem()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">SkyEngine2d::FastBuffer</a>&lt; T &gt;::freeMem </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>释放内存 </p>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<a id="ab79255cdf919b8c824bc148f1ce97173"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab79255cdf919b8c824bc148f1ce97173">&#9670;&nbsp;</a></span>getCapacitry()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">SkyEngine2d::FastBuffer</a>&lt; T &gt;::getCapacitry </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取容量 </p>
<dl class="section return"><dt>返回</dt><dd>int </dd></dl>

</div>
</div>
<a id="a30a4357209d6b6a6b2c1f14d69ce2c99"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a30a4357209d6b6a6b2c1f14d69ce2c99">&#9670;&nbsp;</a></span>getData()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const T* <a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">SkyEngine2d::FastBuffer</a>&lt; T &gt;::getData </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取数据的指针 </p>
<dl class="section return"><dt>返回</dt><dd>const T* </dd></dl>

</div>
</div>
<a id="a6dd4ca47ee2d4ac59dc4ef0e7ff6bd00"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6dd4ca47ee2d4ac59dc4ef0e7ff6bd00">&#9670;&nbsp;</a></span>getMemSize()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">SkyEngine2d::FastBuffer</a>&lt; T &gt;::getMemSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取数据所占内存的大小 单位 字节 </p>
<dl class="section return"><dt>返回</dt><dd>int </dd></dl>

</div>
</div>
<a id="ae5ce91afaf795c23f9d6e8b69b574263"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae5ce91afaf795c23f9d6e8b69b574263">&#9670;&nbsp;</a></span>getSize()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">SkyEngine2d::FastBuffer</a>&lt; T &gt;::getSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取数据的数量 </p>
<dl class="section return"><dt>返回</dt><dd>int </dd></dl>

</div>
</div>
<a id="ae27008e1a3e1b9c1caa67ece122e5e1f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae27008e1a3e1b9c1caa67ece122e5e1f">&#9670;&nbsp;</a></span>operator=() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">FastBuffer</a>&lt;T&gt;&amp; <a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">SkyEngine2d::FastBuffer</a>&lt; T &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">FastBuffer</a>&lt; T &gt; &amp;&#160;</td>
          <td class="paramname"><em>buffer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>拷贝赋值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>FastBuffer&lt;T&gt; &amp; buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>FastBuffer&lt;T&gt;&amp; </dd></dl>

</div>
</div>
<a id="a204c893a96f99ea1fb35c1719e68f542"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a204c893a96f99ea1fb35c1719e68f542">&#9670;&nbsp;</a></span>operator=() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">FastBuffer</a>&lt;T&gt;&amp; <a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">SkyEngine2d::FastBuffer</a>&lt; T &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">FastBuffer</a>&lt; T &gt; &amp;&amp;&#160;</td>
          <td class="paramname"><em>buffer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>移动赋值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">FastBuffer&lt;T&gt;</td><td>&amp; &amp; buffer </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>FastBuffer&lt;T&gt;&amp; </dd></dl>

</div>
</div>
<a id="ae93d4ba7c2f0a857e2bbc45e41a8fd75"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae93d4ba7c2f0a857e2bbc45e41a8fd75">&#9670;&nbsp;</a></span>operator[]() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const T&amp; <a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">SkyEngine2d::FastBuffer</a>&lt; T &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>取值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">int</td><td>index 值的下标 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>const T&amp; </dd></dl>

</div>
</div>
<a id="ab0c74d5cabc35fba9b1d3091de9d3732"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0c74d5cabc35fba9b1d3091de9d3732">&#9670;&nbsp;</a></span>operator[]() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T&amp; <a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">SkyEngine2d::FastBuffer</a>&lt; T &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>index</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>取值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">int</td><td>index 值的下标 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>T&amp; </dd></dl>

</div>
</div>
<a id="abb504bf7f642daa4022da71c14052fbb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb504bf7f642daa4022da71c14052fbb">&#9670;&nbsp;</a></span>reserve()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="class_sky_engine2d_1_1_fast_buffer.html">SkyEngine2d::FastBuffer</a>&lt; T &gt;::reserve </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>size</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>预分配容量 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">int</td><td>size 预分配的大小 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>void </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/utility/<a class="el" href="_fast_buffer_8h_source.html">FastBuffer.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
